home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 June: Reference Library / Dev.CD Jun 94.toast / Periodicals / develop / develop Issue 18 / develop 18 code / Hierarchical Lists / MakeFile < prev   
Encoding:
Makefile  |  1994-03-16  |  1.4 KB  |  61 lines  |  [TEXT/MPS ]

  1. #
  2. # ListInAList
  3. # Copyright © 1993, Apple Computer Inc.
  4. #
  5. Src                    =    ":Src:"
  6. Obj                    =    ":Obj:"
  7. Objects                =                        ∂
  8.         {Obj}EnumerateHFSCatalog.c.o        ∂
  9.         {Obj}Main.c.o                        ∂
  10.         {Obj}SpinCursor.c.o                    ∂
  11.         {Obj}TwistDownList.c.o                ∂
  12.         {Obj}WindowManager.c.o
  13.  
  14. #
  15. # Directory dependencies. "Everything in the {Obj} directory depends on something
  16. # in the {Src} directory." Note: you can throw away the contents of the {Obj}
  17. # directory if you want to rebuild from scratch.
  18. #
  19. {Obj}            ƒ    {Src}
  20.  
  21. #
  22. # Compiler dependencies -- common to all compilations The idea here is that all
  23. # sources are stored in the {Src} subdirectory, and all objects and code resources
  24. # output by the linker or Rez are stored in the {Obj} subdirectory. Note that
  25. # we define MPW to simplify portability: this sample compiles under Think C,
  26. # MPW, MetroWorks C/68000, and MetroWorks C/PPC.
  27. #
  28. .c.o ƒ .c                                    ∂
  29.         {Src}ListInAList.h                    ∂
  30.         {Src}TwistDownList.h
  31.     C {COptions} -d MPW                        ∂
  32.         -o {TargDir}{Default}.c.o            ∂
  33.         {DepDir}{Default}.c
  34.  
  35.  
  36. #
  37. # Build the application.
  38. #
  39. "ListInAList MPW" ƒƒ                        ∂
  40.         MakeFile                            ∂
  41.         {Src}ListInAList.r
  42.     Rez                                        ∂
  43.         {Src}ListInAList.r                    ∂
  44.         -append                                ∂
  45.         -t APPL                                ∂
  46.         -i "{CIncludes}"                    ∂
  47.         -i "{RIncludes}"                    ∂
  48.         -o "ListInAList MPW"
  49.  
  50. "ListInAList MPW" ƒƒ                        ∂
  51.         MakeFile                            ∂
  52.         {Objects}
  53.     Link                                    ∂
  54.         -t APPL                                ∂
  55.         {Objects}                            ∂
  56.         "{Libraries}"Runtime.o                ∂
  57.         "{Libraries}"Interface.o            ∂
  58.         -o "ListInAList MPW"
  59.  
  60.